<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTcmTeaDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tcm_tea_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('名称');
            $table->string('pinyin')->nullable()->comment('拼音');
            $table->string('picture')->nullable()->comment('图片');
            $table->string('shareImg')->nullable()->comment('分享图片');
            $table->string('teaCategory')->nullable()->comment('分类');
            $table->string('natures')->nullable()->comment('性');
            $table->string('flavors')->nullable()->comment('味');
            $table->string('pickSeason')->nullable()->comment('采摘时间');
            $table->string('meridian')->nullable()->comment('性味归经');
            $table->string('processing')->nullable()->comment('炮制方法');
            $table->string('drugEffects')->nullable()->comment('药效');
            $table->text('healthBenefits')->nullable()->comment('养生保健功效');
            $table->string('originImg')->nullable()->comment('产地图片');
            $table->string('classification')->nullable()->comment('主要分类');
            $table->text('history')->nullable()->comment('溯源');
            $table->text('story')->nullable()->comment('轶事');
            $table->text('poetry')->nullable()->comment('诗词');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tcm_tea_detail');
    }
}
